package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface EmployeeMapper {
    //查询询工资大于等于某个值的员工
    List<Employee> getByMinSal(@Param("minSalary") BigDecimal salary);
    //按照工资范围查询员工
    List<Employee> getByMinSal2(@Param("minSalary") BigDecimal salary1,@Param("maxSalary") BigDecimal salary2);
    //给某个员工加工资
    void update(Employee employee);
    //批量地根据员工 id 删除员工
    void deleteByIds(@Param("ids") Long[] ids);
}
